statefiles: create helper functions to write leases
authorDavid Härdeman <[email protected]>
Sat, 8 Nov 2025 12:17:58 +0000 (13:17 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 11 Nov 2025 07:30:12 +0000 (08:30 +0100)
commit8500654e39d53b0688dd65f47a78090ff0a5e055
treea6ebb409bfbf5f73176f81dffa54cd269e85bba6
parent98276afcff82884d304f3a06e5dadc5d9192f96e
statefiles: create helper functions to write leases

Break statesfiles_write_state() into smaller parts, making it easier to
read and understand the logic of each part.

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/302
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/statefiles.c